package com.hs.telepass.utils;


import android.content.Context;
import android.widget.Toast;

public class ToastUtil {

    public static void showMessageInShort(final Context act, final String msg) {
        showMessage(act, msg, Toast.LENGTH_SHORT);
    }


    public static void showMessageInLong(final Context act, final String msg) {
        showMessage(act, msg, Toast.LENGTH_LONG);
    }

    public static void showMessageInShort(final Context act, final int msg) {
        showMessage(act, msg, Toast.LENGTH_SHORT);
    }

    public static void showMessageInLong(final Context act, final int msg) {
        showMessage(act, msg, Toast.LENGTH_LONG);
    }


    public static void showMessage(final Context act, final int msg,
                                   final int len) {
        Toast.makeText(act, msg, len).show();
    }

    public static void showMessage(final Context act, final String msg,
                                   final int len) {
        Toast.makeText(act, msg, len).show();
    }

}
